package com.hjk.common.aop.aspect;

import java.lang.annotation.*;

/**
 * redis锁注解
 */
@Inherited
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisLock {
    /**
     * @return 锁前缀
     */
    String prefix() default "notice.service:schedule.lock:";

    /**
     * @return 锁key
     */
    String key() default "";

    /**
     * @return 锁超时时间
     */
    int expire() default 10;
}
